# 导包
import requests

# 请求行
url = 'http://127.0.0.1:8000/api/add_event/'
# 请求头
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
# 请求体
body = {
    'eid': '555',
    'name': '苹果14',
    'limit': '20',
    'status': '1',
    'address': '源码时代',
    'start_time': '2022-7-20'
}
# 发送请求
response = requests.post(url, headers=headers, data=body)
# 查询响应
print(response.status_code)
print(response.text)
print(response.json())
